<%@ page import="ztc.common.UserBean" %>
<%--
  Created by IntelliJ IDEA.
  User: ztc
  Date: 16-3-31
  Time: 上午10:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>签到发布</title>
  <link href="${pageContext.request.contextPath}/css/min.css" rel="stylesheet">
  <link href="${pageContext.request.contextPath}/css/login.css" rel="stylesheet">
  <script src="${pageContext.request.contextPath}/js/jquery.js"></script>
  <script src="${pageContext.request.contextPath}/js/min.js"></script>
  <script src="${pageContext.request.contextPath}/js/my.js"></script>
  <link rel="shortcut icon" type="image/x-icon" href="${pageContext.request.contextPath}/img/favicon.ico" />
</head>
<%
  request.setCharacterEncoding("utf-8");
  String msg=request.getParameter("msg");
  if(msg!=null){
%>
<script type="text/javascript">
  alert("<%=msg%>");
</script>
<%
  }
%>
<body>
<div style="position:fixed;top: 20px; background:#ccc;height:50px;width:98%;left:1%;z-index:1;" id="topbar">
  <img src="/img/0.png" height="40px" style="position: relative;top: 10%;left: 5%;z-index: 2;">
  <img src="/img/135-round.png" height="40px" style="position: relative;top: 10%;">
  <img src="/img/435-round.png" height="40px" style="position: relative;top: 10%;">
  <label style="position: relative;top: 20%;">×××××××××× ××××××××××</label>
  <a href="/qr/issuance.jsp"><label style="position: relative;top: 20%;left:10%;">发布签到</label></a>
  <a href="/qr/showmem.jsp"><label style="position: relative;top: 20%;left:20%;">查看未保存布签到</label></a>
  <a href="/qr/showinf.jsp"><label style="position: relative;top: 20%;left:30%;">查看已保存布签到</label></a>
  <label style="position: relative;top: 20%;left:45%;" >
    <%=(session.getAttribute("userBean")==null?"<a href=\"/users/register.jsp\">注册</a>":"用户："+((UserBean)session.getAttribute("userBean")).getName())+"<a href=\"/users/logout\">注销</a> "%></label>
</div>
<div class="container" style="position: relative;top:10px;">
  <form class="form-signin" name="form1" role="form" action="/qr/showqr.jsp" method="post">
    <h3 class="form-signin-heading" align="center">自定义签到发布</h3>
    <div class="form-group form-group-lg">
      <input type="text" name="name" class="form-control input-lg" required id="name" placeholder="签到名称(不能重复)"/>
    </div>
    <div class="form-group form-group-lg">
      <input type="text" name="size" class="form-control input-lg" required id="size" placeholder="二维码的边长"/>
    </div>
    <div class="form-group form-group-lg" align="center">
      <label>前景色：</label><BR>
      <label for="foreground">白：
        <input type="radio" name="foreground"  checked value="white" id="foreground" class="form-control input-lg" required />
      </label>
      <label for="foreground1">亮灰：
        <input type="radio" name="foreground" value="light-gray" id="foreground1" class="form-control input-lg" required />
      </label>
      <label for="foreground2">橘黄：
        <input type="radio" name="foreground" value="orange" id="foreground2" class="form-control input-lg" required />
      </label>
    </div>
    <div class="form-group form-group-lg" align="center">
      <label >背景色：</label><BR>
      <label for="background">红：
        <input type="radio" name="background" value="red" id="background" class="form-control input-lg" required />
      </label>
      <label for="background1">黑：
        <input type="radio" name="background" checked value="black" id="background1" class="form-control input-lg" required />
      </label>
      <label for="background2">蓝：
        <input type="radio" name="background" value="blue" id="background2" class="form-control input-lg" required />
      </label>
    </div>
    <div class="">
      <div>
        <button type="submit" id="button" class="btn btn-primary btn-block btn-lg">发布</button>
      </div>
    </div>
  </form>
</div>
</body>
</html>
